﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/AdminPage.master" AutoEventWireup="true" CodeFile="WeightOfMail_Update.aspx.cs" Inherits="UpdateWeightOfMail" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<script type="text/javascript">
    function ShowMessage() {
        alert('Update Weight of mail successful!');
        window.location.href = 'WeightOfMail_Management.aspx';
    }

</script>
<table class="style3" align="center" >
        <tr>
            <td colspan="3" style="background-image: url(../images/bg_head.png); height: 30px" 
                class="style3">

                <asp:Label ID="Label1" runat="server" ForeColor="White" Text="Update Weight Of Mail" 
                    Font-Bold="True" ></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="style6" style="width: 12%">
                &nbsp;</td>
            <td class="style6">
                Weight Of Mail ID</td>
            <td>
                <asp:Label ID="lblWID" runat="server" style="font-weight: 700" Text="lblWID"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="style6" style="width: 12%">
                &nbsp;</td>
            <td class="style6">
                Weight Of Mail Name</td>
            <td>
                <asp:TextBox ID="txtWName" runat="server" Width="170px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvDName" runat="server" 
                    ControlToValidate="txtWName" 
                    ErrorMessage="Weight of mail name can not be blank" Font-Size="Large" 
                    ForeColor="Red">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style6" style="width: 12%">
                &nbsp;</td>
            <td class="style6">
                Weight Charge</td>
            <td>
                <asp:TextBox ID="txtWCharge" runat="server" Width="170px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvDCharge" runat="server" 
                    ControlToValidate="txtWCharge" ErrorMessage="Weight charge can not be blank" 
                    Font-Size="Large" ForeColor="Red">*</asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="revDCharge" runat="server" 
                    ControlToValidate="txtWCharge" 
                    ErrorMessage="Weight charge contains integers or decimals only" 
                    Font-Size="Large" ForeColor="Red" 
                    ValidationExpression="^[.][0-9]+$|[0-9]*[.]*[0-9]+$">*</asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td class="style6" style="width: 12%">
                &nbsp;</td>
            <td class="style6" colspan="2">
                <asp:ValidationSummary ID="ValidationSummary1" runat="server" ForeColor="Red" />
            </td>
        </tr>
        <tr>
            <td class="style6" style="width: 12%">
                &nbsp;</td>
            <td class="style7">
                <asp:ImageButton ID="imgbUpdate" runat="server" 
                    ImageUrl="~/images/img_Update.png" onclick="imgbUpdate_Click" />
            </td>
            <td>
                <asp:ImageButton ID="imgbReset" runat="server" 
                    ImageUrl="~/images/img_Reset.png" CausesValidation="False" 
                    onclick="imgbReset_Click" />
                <asp:ImageButton ID="imgbBack" runat="server" CausesValidation="False" 
                    ImageUrl="~/images/img_Back.png" onclick="imgbBack_Click" />
            </td>
        </tr>
        </table>
</asp:Content>

